﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="alluser.aspx.cs" Inherits="weba.alluser" %>

<%@ Register assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" namespace="C1.Web.Wijmo.Controls.C1GridView" tagprefix="wijmo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                设置等级： <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="LinqDataSource2" DataTextField="T_PowerName" DataValueField="T_PowerID"></asp:DropDownList><asp:Button ID="Button1" runat="server" Text="分配权限" OnClick="Button1_Click" />
        <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="weba.sjklqDataContext" EntityTypeName="" TableName="T_ServicePower">
        </asp:LinqDataSource>
        <wijmo:C1GridView ID="C1GridView1" runat="server" AllowPaging="True" AutogenerateColumns="False" DataSourceID="LinqDataSource1" GroupAreaCaption="将这里的一列拖去与那一列分组。" LoadingText="载入中...">
            <Columns>
                <wijmo:C1TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval("T_ServiceID") %>' />
                    </ItemTemplate>
                </wijmo:C1TemplateField>
                
                <wijmo:C1BoundField DataField="T_ServiceName" HeaderText="用户名" ReadOnly="True" SortExpression="T_ServiceName">
                </wijmo:C1BoundField>
                <wijmo:C1BoundField DataField="T_PowerID" HeaderText="用户等级" ReadOnly="True" SortExpression="T_PowerID">
                </wijmo:C1BoundField>
                <wijmo:C1BoundField DataField="T_PowerName" HeaderText="用户身份" ReadOnly="True" SortExpression="T_PowerName">
                </wijmo:C1BoundField>
                <wijmo:C1BoundField DataField="T_ServiceState" HeaderText="用户状态" ReadOnly="True" SortExpression="T_ServiceState">
                </wijmo:C1BoundField>
                <wijmo:C1BoundField DataField="T_DateTime" HeaderText="时间" ReadOnly="True" SortExpression="T_DateTime">
                </wijmo:C1BoundField>
            </Columns>
        </wijmo:C1GridView>
    
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="weba.sjklqDataContext" EntityTypeName="" Select="new (T_ServiceID, T_ServiceName, T_PowerID, T_ServiceState, T_DateTime, T_PowerName)" TableName="userandpower">
        </asp:LinqDataSource>
            </ContentTemplate>
        </asp:UpdatePanel>
      
    
    </div>
    </form>
</body>
</html>
